with open('text2/text','r',encoding='utf-8') as f:
    res=f.read()
    print(res)
    str_list=res.split('\n')
    count=0
    for line in str_list:
        count+=1
        if res='python':
            print(f'行数:{count}')
            print(f'行号:{str_list.readline}')


